package com.yxym.homework07;

public class LabeledPoint extends Point{
    //属性
    private String name;

    public LabeledPoint(double x, double y, String name) {
        super(x, y);
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
